package com.luych.toolbox.data.service.entity;

import com.luych.toolbox.common.enums.DataUpgradeStatus;
import com.luych.toolbox.common.service.base.BaseEntity;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "data_upgrade_detail")
public class DataUpgradeDetail extends BaseEntity {

    @Column(name = "data_upgrade_id")
    private String dataUpgradeId;
    @Column(name = "data_source_id")
    private String dataSourceId;
    @Column(name = "data_project_id")
    private String dataProjectId;
    @Column(name = "data_agent_id")
    private String dataAgentId;
    @Column(name = "script")
    private String script;
    @Column(name = "status")
    @Enumerated(EnumType.STRING)
    private DataUpgradeStatus status;
    @Column(name = "start_date")
    private Date startDate;
    @Column(name = "complete_date")
    private Date completeDate;
    @Column(name = "error_message")
    private String errorMessage;
    @Column(name = "error_trace")
    private String errorTrace;

    public String getDataUpgradeId() {
        return dataUpgradeId;
    }

    public void setDataUpgradeId(String dataUpgradeId) {
        this.dataUpgradeId = dataUpgradeId;
    }

    public String getDataSourceId() {
        return dataSourceId;
    }

    public void setDataSourceId(String dataSourceId) {
        this.dataSourceId = dataSourceId;
    }

    public String getDataProjectId() {
        return dataProjectId;
    }

    public void setDataProjectId(String dataProjectId) {
        this.dataProjectId = dataProjectId;
    }

    public String getDataAgentId() {
        return dataAgentId;
    }

    public void setDataAgentId(String dataAgentId) {
        this.dataAgentId = dataAgentId;
    }

    public String getScript() {
        return script;
    }

    public void setScript(String script) {
        this.script = script;
    }

    public DataUpgradeStatus getStatus() {
        return status;
    }

    public void setStatus(DataUpgradeStatus status) {
        this.status = status;
    }

    public Date getStartDate() {
        return startDate;
    }

    public void setStartDate(Date startDate) {
        this.startDate = startDate;
    }

    public Date getCompleteDate() {
        return completeDate;
    }

    public void setCompleteDate(Date completeDate) {
        this.completeDate = completeDate;
    }

    public String getErrorMessage() {
        return errorMessage;
    }

    public void setErrorMessage(String errorMessage) {
        this.errorMessage = errorMessage;
    }

    public String getErrorTrace() {
        return errorTrace;
    }

    public void setErrorTrace(String errorTrace) {
        this.errorTrace = errorTrace;
    }
}